<?php 

namespace app\App\validate;

use think\Validate;
use plugin\saiadmin\basic\BaseValidate;

class DeviceMessageValidate extends BaseValidate {

    /**
     * 定义验证规则
     */
    protected $rule =   [
        'device_id' => 'require|length:1,60',
    ];

    /**
     * 定义错误信息
     */
    protected $message = [
        'device_id.require' => 'device.validate.device_id_require',
        'device_id.length' => 'device.validate.device_id_length',
    ];


    /**
     * 定义场景
     */
    protected $scene = [
        'list'=> [ 'device_id' ]
    ];

}
